Tweak format specifier in magproto wpl write.
authorrobertl <robertl>
Wed, 25 Oct 2006 10:36:12 +0000 (10:36 +0000)
committerrobertl <robertl>
Wed, 25 Oct 2006 10:36:12 +0000 (10:36 +0000)
magproto.c

index 11716bde22ef71139679f28d68fc2a15bb2c482c..2dced2d9191c8f88a9cb5e356de749800caa4af2 100644 (file)
@@ -1266,7 +1266,7 @@ mag_waypt_pr(const waypoint *waypointp)
        if (odesc && /* !is_file && */ (wptcmtcnt++ >= wptcmtcnt_max))
                odesc[0] = 0;
 
-       sprintf(obuf, "PMGNWPL,%4.3f,%c,%09.3f,%c,%07.lf,M,%-.*s,%-.46s,%s",
+       sprintf(obuf, "PMGNWPL,%4.3f,%c,%09.3f,%c,%07.0f,M,%-.*s,%-.46s,%s",
                lat, ilat < 0 ? 'S' : 'N',
                lon, ilon < 0 ? 'W' : 'E',
                waypointp->altitude == unknown_alt ?